﻿<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
  
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>Class EnumCode
   | CodeJam </title>
    <meta name="viewport" content="width=device-width">
    <meta name="title" content="Class EnumCode
   | CodeJam ">
    <meta name="generator" content="docfx 2.23.1.0">
    
    <link rel="shortcut icon" href="../../favicon.ico">
    <link rel="stylesheet" href="../../styles/docfx.vendor.css">
    <link rel="stylesheet" href="../../styles/docfx.css">
    <link rel="stylesheet" href="../../styles/main.css">
    <meta property="docfx:navrel" content="../../toc.html">
    <meta property="docfx:tocrel" content="toc.html">
    <meta property="docfx:rel" content="../../">
    
  </head>
  <body data-spy="scroll" data-target="#affix">
    <div id="wrapper">
      <header>
        
        <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
          <div class="container">
            <div class="navbar-header">
              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
              </button>
              
              <a class="navbar-brand" href="../../index.html">
                <img id="logo" class="svg" src="../../images/CodeJam.Main.Icon.png" alt="">
              </a>
            </div>
            <div class="collapse navbar-collapse" id="navbar">
              <form class="navbar-form navbar-right" role="search" id="search">
                <div class="form-group">
                  <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
                </div>
              </form>
            </div>
          </div>
        </nav>
        
        <div class="subnav navbar navbar-default">
          <div class="container hide-when-search" id="breadcrumb">
            <ul class="breadcrumb">
              <li></li>
            </ul>
          </div>
        </div>
      </header>
      <div class="container body-content">
        
        <div id="search-results">
          <div class="search-list"></div>
          <div class="sr-items"></div>
          <ul id="pagination"></ul>
        </div>
      </div>
      <div role="main" class="container body-content hide-when-search">
        
        <div class="sidenav hide-when-search">
          <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
          <div class="sidetoggle collapse" id="sidetoggle">
            <div id="sidetoc"></div>
          </div>
        </div>
        <div class="article row grid-right">
          <div class="col-md-10">
            <article class="content wrap" id="_content" data-uid="CodeJam.EnumCode">
  
  
  <h1 id="CodeJam_EnumCode" data-uid="CodeJam.EnumCode" class="text-break">Class EnumCode
  </h1>
  <div class="markdown level0 summary"><p>Enum assertions class.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><span class="xref">System.Object</span></div>
    <div class="level1"><span class="xref">EnumCode</span></div>
  </div>
  <div class="inheritedMembers">
    <h5>Inherited Members</h5>
    <div>
      <span class="xref">System.Object.ToString()</span>
    </div>
    <div>
      <span class="xref">System.Object.Equals(System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.Equals(System.Object, System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.GetHashCode()</span>
    </div>
    <div>
      <span class="xref">System.Object.GetType()</span>
    </div>
    <div>
      <span class="xref">System.Object.MemberwiseClone()</span>
    </div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="CodeJam.html">CodeJam</a></h6>
  <h6><strong>Assembly</strong>: CodeJam.dll</h6>
  <h5 id="CodeJam_EnumCode_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static class EnumCode</code></pre>
  </div>
  <h3 id="methods">Methods
  </h3>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_EnumCode_AnyFlagSet__1___0_System_String___0_.md&amp;value=---%0Auid%3A%20CodeJam.EnumCode.AnyFlagSet%60%601(%60%600%2CSystem.String%2C%60%600)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/Main/src/Assertions/EnumCode.cs/#L87">View Source</a>
  </span>
  <a id="CodeJam_EnumCode_AnyFlagSet_" data-uid="CodeJam.EnumCode.AnyFlagSet*"></a>
  <h4 id="CodeJam_EnumCode_AnyFlagSet__1___0_System_String___0_" data-uid="CodeJam.EnumCode.AnyFlagSet``1(``0,System.String,``0)">AnyFlagSet&lt;TEnum&gt;(TEnum, String, TEnum)</h4>
  <div class="markdown level1 summary"><p>Asserts that any bit from specified argument flag is set.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static void AnyFlagSet&lt;TEnum&gt;(TEnum value, string argName, TEnum flags)where TEnum : struct, IComparable, IFormattable, IConvertible</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">TEnum</span></td>
        <td><span class="parametername">value</span></td>
        <td><p>The argument.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">argName</span></td>
        <td><p>Name of the argument.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">TEnum</span></td>
        <td><span class="parametername">flags</span></td>
        <td><p>The bitwise combinations of the flags.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">TEnum</span></td>
        <td><p>The type of the enum value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_EnumCode_AnyFlagUnset__1___0_System_String___0_.md&amp;value=---%0Auid%3A%20CodeJam.EnumCode.AnyFlagUnset%60%601(%60%600%2CSystem.String%2C%60%600)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/Main/src/Assertions/EnumCode.cs/#L70">View Source</a>
  </span>
  <a id="CodeJam_EnumCode_AnyFlagUnset_" data-uid="CodeJam.EnumCode.AnyFlagUnset*"></a>
  <h4 id="CodeJam_EnumCode_AnyFlagUnset__1___0_System_String___0_" data-uid="CodeJam.EnumCode.AnyFlagUnset``1(``0,System.String,``0)">AnyFlagUnset&lt;TEnum&gt;(TEnum, String, TEnum)</h4>
  <div class="markdown level1 summary"><p>Asserts that any bit from specified argument flag is not set.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static void AnyFlagUnset&lt;TEnum&gt;(TEnum value, string argName, TEnum flags)where TEnum : struct, IComparable, IFormattable, IConvertible</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">TEnum</span></td>
        <td><span class="parametername">value</span></td>
        <td><p>The argument.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">argName</span></td>
        <td><p>Name of the argument.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">TEnum</span></td>
        <td><span class="parametername">flags</span></td>
        <td><p>The bitwise combinations of the flags.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">TEnum</span></td>
        <td><p>The type of the enum value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_EnumCode_AnyStateFlagSet__1___0___0_System_String_.md&amp;value=---%0Auid%3A%20CodeJam.EnumCode.AnyStateFlagSet%60%601(%60%600%2C%60%600%2CSystem.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/Main/src/Assertions/EnumCode.cs/#L186">View Source</a>
  </span>
  <a id="CodeJam_EnumCode_AnyStateFlagSet_" data-uid="CodeJam.EnumCode.AnyStateFlagSet*"></a>
  <h4 id="CodeJam_EnumCode_AnyStateFlagSet__1___0___0_System_String_" data-uid="CodeJam.EnumCode.AnyStateFlagSet``1(``0,``0,System.String)">AnyStateFlagSet&lt;TEnum&gt;(TEnum, TEnum, String)</h4>
  <div class="markdown level1 summary"><p>Asserts that any bit from specified state flag is set.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static void AnyStateFlagSet&lt;TEnum&gt;(TEnum value, TEnum flags, string message)where TEnum : struct, IComparable, IFormattable, IConvertible</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">TEnum</span></td>
        <td><span class="parametername">value</span></td>
        <td><p>The value.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">TEnum</span></td>
        <td><span class="parametername">flags</span></td>
        <td><p>The bitwise combinations of the flags.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">message</span></td>
        <td><p>The message.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">TEnum</span></td>
        <td><p>The type of the enum value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_EnumCode_AnyStateFlagSet__1___0___0_System_String_System_Object___.md&amp;value=---%0Auid%3A%20CodeJam.EnumCode.AnyStateFlagSet%60%601(%60%600%2C%60%600%2CSystem.String%2CSystem.Object%5B%5D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/Main/src/Assertions/EnumCode.cs/#L201">View Source</a>
  </span>
  <a id="CodeJam_EnumCode_AnyStateFlagSet_" data-uid="CodeJam.EnumCode.AnyStateFlagSet*"></a>
  <h4 id="CodeJam_EnumCode_AnyStateFlagSet__1___0___0_System_String_System_Object___" data-uid="CodeJam.EnumCode.AnyStateFlagSet``1(``0,``0,System.String,System.Object[])">AnyStateFlagSet&lt;TEnum&gt;(TEnum, TEnum, String, Object[])</h4>
  <div class="markdown level1 summary"><p>Asserts that any bit from specified state flag is set.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static void AnyStateFlagSet&lt;TEnum&gt;(TEnum value, TEnum flags, string messageFormat, params object[] args)where TEnum : struct, IComparable, IFormattable, IConvertible</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">TEnum</span></td>
        <td><span class="parametername">value</span></td>
        <td><p>The value.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">TEnum</span></td>
        <td><span class="parametername">flags</span></td>
        <td><p>The bitwise combinations of the flags.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">messageFormat</span></td>
        <td><p>The message format.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Object</span>[]</td>
        <td><span class="parametername">args</span></td>
        <td><p>The arguments.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">TEnum</span></td>
        <td><p>The type of the enum value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_EnumCode_AnyStateFlagUnset__1___0___0_System_String_.md&amp;value=---%0Auid%3A%20CodeJam.EnumCode.AnyStateFlagUnset%60%601(%60%600%2C%60%600%2CSystem.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/Main/src/Assertions/EnumCode.cs/#L154">View Source</a>
  </span>
  <a id="CodeJam_EnumCode_AnyStateFlagUnset_" data-uid="CodeJam.EnumCode.AnyStateFlagUnset*"></a>
  <h4 id="CodeJam_EnumCode_AnyStateFlagUnset__1___0___0_System_String_" data-uid="CodeJam.EnumCode.AnyStateFlagUnset``1(``0,``0,System.String)">AnyStateFlagUnset&lt;TEnum&gt;(TEnum, TEnum, String)</h4>
  <div class="markdown level1 summary"><p>Asserts that any bit from specified state flag is not set.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static void AnyStateFlagUnset&lt;TEnum&gt;(TEnum value, TEnum flags, string message)where TEnum : struct, IComparable, IFormattable, IConvertible</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">TEnum</span></td>
        <td><span class="parametername">value</span></td>
        <td><p>The value.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">TEnum</span></td>
        <td><span class="parametername">flags</span></td>
        <td><p>The bitwise combinations of the flags.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">message</span></td>
        <td><p>The message.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">TEnum</span></td>
        <td><p>The type of the enum value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_EnumCode_AnyStateFlagUnset__1___0___0_System_String_System_Object___.md&amp;value=---%0Auid%3A%20CodeJam.EnumCode.AnyStateFlagUnset%60%601(%60%600%2C%60%600%2CSystem.String%2CSystem.Object%5B%5D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/Main/src/Assertions/EnumCode.cs/#L169">View Source</a>
  </span>
  <a id="CodeJam_EnumCode_AnyStateFlagUnset_" data-uid="CodeJam.EnumCode.AnyStateFlagUnset*"></a>
  <h4 id="CodeJam_EnumCode_AnyStateFlagUnset__1___0___0_System_String_System_Object___" data-uid="CodeJam.EnumCode.AnyStateFlagUnset``1(``0,``0,System.String,System.Object[])">AnyStateFlagUnset&lt;TEnum&gt;(TEnum, TEnum, String, Object[])</h4>
  <div class="markdown level1 summary"><p>Asserts that any bit from specified state flag is not set.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static void AnyStateFlagUnset&lt;TEnum&gt;(TEnum value, TEnum flags, string messageFormat, params object[] args)where TEnum : struct, IComparable, IFormattable, IConvertible</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">TEnum</span></td>
        <td><span class="parametername">value</span></td>
        <td><p>The value.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">TEnum</span></td>
        <td><span class="parametername">flags</span></td>
        <td><p>The bitwise combinations of the flags.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">messageFormat</span></td>
        <td><p>The message format.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Object</span>[]</td>
        <td><span class="parametername">args</span></td>
        <td><p>The arguments.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">TEnum</span></td>
        <td><p>The type of the enum value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_EnumCode_Defined__1___0_System_String_.md&amp;value=---%0Auid%3A%20CodeJam.EnumCode.Defined%60%601(%60%600%2CSystem.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/Main/src/Assertions/EnumCode.cs/#L20">View Source</a>
  </span>
  <a id="CodeJam_EnumCode_Defined_" data-uid="CodeJam.EnumCode.Defined*"></a>
  <h4 id="CodeJam_EnumCode_Defined__1___0_System_String_" data-uid="CodeJam.EnumCode.Defined``1(``0,System.String)">Defined&lt;TEnum&gt;(TEnum, String)</h4>
  <div class="markdown level1 summary"><p>Asserts that specified argument enum value is defined.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static void Defined&lt;TEnum&gt;(TEnum value, string argName)where TEnum : struct, IComparable, IFormattable, IConvertible</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">TEnum</span></td>
        <td><span class="parametername">value</span></td>
        <td><p>The argument.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">argName</span></td>
        <td><p>Name of the argument.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">TEnum</span></td>
        <td><p>The type of the enum value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_EnumCode_FlagsDefined__1___0_System_String_.md&amp;value=---%0Auid%3A%20CodeJam.EnumCode.FlagsDefined%60%601(%60%600%2CSystem.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/Main/src/Assertions/EnumCode.cs/#L35">View Source</a>
  </span>
  <a id="CodeJam_EnumCode_FlagsDefined_" data-uid="CodeJam.EnumCode.FlagsDefined*"></a>
  <h4 id="CodeJam_EnumCode_FlagsDefined__1___0_System_String_" data-uid="CodeJam.EnumCode.FlagsDefined``1(``0,System.String)">FlagsDefined&lt;TEnum&gt;(TEnum, String)</h4>
  <div class="markdown level1 summary"><p>Asserts that all bits of the flags combination are defined.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static void FlagsDefined&lt;TEnum&gt;(TEnum argFlags, string argName)where TEnum : struct, IComparable, IFormattable, IConvertible</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">TEnum</span></td>
        <td><span class="parametername">argFlags</span></td>
        <td><p>The bitwise combinations of the flags to check.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">argName</span></td>
        <td><p>Name of the argument.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">TEnum</span></td>
        <td><p>The type of the enum value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_EnumCode_FlagSet__1___0_System_String___0_.md&amp;value=---%0Auid%3A%20CodeJam.EnumCode.FlagSet%60%601(%60%600%2CSystem.String%2C%60%600)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/Main/src/Assertions/EnumCode.cs/#L53">View Source</a>
  </span>
  <a id="CodeJam_EnumCode_FlagSet_" data-uid="CodeJam.EnumCode.FlagSet*"></a>
  <h4 id="CodeJam_EnumCode_FlagSet__1___0_System_String___0_" data-uid="CodeJam.EnumCode.FlagSet``1(``0,System.String,``0)">FlagSet&lt;TEnum&gt;(TEnum, String, TEnum)</h4>
  <div class="markdown level1 summary"><p>Asserts that the specified argument flag is set.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static void FlagSet&lt;TEnum&gt;(TEnum value, string argName, TEnum flag)where TEnum : struct, IComparable, IFormattable, IConvertible</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">TEnum</span></td>
        <td><span class="parametername">value</span></td>
        <td><p>The argument.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">argName</span></td>
        <td><p>Name of the argument.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">TEnum</span></td>
        <td><span class="parametername">flag</span></td>
        <td><p>The flag.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">TEnum</span></td>
        <td><p>The type of the enum value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_EnumCode_FlagUnset__1___0_System_String___0_.md&amp;value=---%0Auid%3A%20CodeJam.EnumCode.FlagUnset%60%601(%60%600%2CSystem.String%2C%60%600)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/Main/src/Assertions/EnumCode.cs/#L104">View Source</a>
  </span>
  <a id="CodeJam_EnumCode_FlagUnset_" data-uid="CodeJam.EnumCode.FlagUnset*"></a>
  <h4 id="CodeJam_EnumCode_FlagUnset__1___0_System_String___0_" data-uid="CodeJam.EnumCode.FlagUnset``1(``0,System.String,``0)">FlagUnset&lt;TEnum&gt;(TEnum, String, TEnum)</h4>
  <div class="markdown level1 summary"><p>Asserts that the specified argument flag is not set.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static void FlagUnset&lt;TEnum&gt;(TEnum value, string argName, TEnum flag)where TEnum : struct, IComparable, IFormattable, IConvertible</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">TEnum</span></td>
        <td><span class="parametername">value</span></td>
        <td><p>The argument.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">argName</span></td>
        <td><p>Name of the argument.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">TEnum</span></td>
        <td><span class="parametername">flag</span></td>
        <td><p>The flag.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">TEnum</span></td>
        <td><p>The type of the enum value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_EnumCode_StateFlagSet__1___0___0_System_String_.md&amp;value=---%0Auid%3A%20CodeJam.EnumCode.StateFlagSet%60%601(%60%600%2C%60%600%2CSystem.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/Main/src/Assertions/EnumCode.cs/#L123">View Source</a>
  </span>
  <a id="CodeJam_EnumCode_StateFlagSet_" data-uid="CodeJam.EnumCode.StateFlagSet*"></a>
  <h4 id="CodeJam_EnumCode_StateFlagSet__1___0___0_System_String_" data-uid="CodeJam.EnumCode.StateFlagSet``1(``0,``0,System.String)">StateFlagSet&lt;TEnum&gt;(TEnum, TEnum, String)</h4>
  <div class="markdown level1 summary"><p>Asserts that the specified state flag is set.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static void StateFlagSet&lt;TEnum&gt;(TEnum value, TEnum flag, string message)where TEnum : struct, IComparable, IFormattable, IConvertible</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">TEnum</span></td>
        <td><span class="parametername">value</span></td>
        <td><p>The value.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">TEnum</span></td>
        <td><span class="parametername">flag</span></td>
        <td><p>The flag.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">message</span></td>
        <td><p>The message.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">TEnum</span></td>
        <td><p>The type of the enum value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_EnumCode_StateFlagSet__1___0___0_System_String_System_Object___.md&amp;value=---%0Auid%3A%20CodeJam.EnumCode.StateFlagSet%60%601(%60%600%2C%60%600%2CSystem.String%2CSystem.Object%5B%5D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/Main/src/Assertions/EnumCode.cs/#L137">View Source</a>
  </span>
  <a id="CodeJam_EnumCode_StateFlagSet_" data-uid="CodeJam.EnumCode.StateFlagSet*"></a>
  <h4 id="CodeJam_EnumCode_StateFlagSet__1___0___0_System_String_System_Object___" data-uid="CodeJam.EnumCode.StateFlagSet``1(``0,``0,System.String,System.Object[])">StateFlagSet&lt;TEnum&gt;(TEnum, TEnum, String, Object[])</h4>
  <div class="markdown level1 summary"><p>Asserts that the specified state flag is set.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static void StateFlagSet&lt;TEnum&gt;(TEnum value, TEnum flag, string messageFormat, params object[] args)where TEnum : struct, IComparable, IFormattable, IConvertible</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">TEnum</span></td>
        <td><span class="parametername">value</span></td>
        <td><p>The value.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">TEnum</span></td>
        <td><span class="parametername">flag</span></td>
        <td><p>The flag.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">messageFormat</span></td>
        <td><p>The message format.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Object</span>[]</td>
        <td><span class="parametername">args</span></td>
        <td><p>The arguments.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">TEnum</span></td>
        <td><p>The type of the enum value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_EnumCode_StateFlagUnset__1___0___0_System_String_.md&amp;value=---%0Auid%3A%20CodeJam.EnumCode.StateFlagUnset%60%601(%60%600%2C%60%600%2CSystem.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/Main/src/Assertions/EnumCode.cs/#L218">View Source</a>
  </span>
  <a id="CodeJam_EnumCode_StateFlagUnset_" data-uid="CodeJam.EnumCode.StateFlagUnset*"></a>
  <h4 id="CodeJam_EnumCode_StateFlagUnset__1___0___0_System_String_" data-uid="CodeJam.EnumCode.StateFlagUnset``1(``0,``0,System.String)">StateFlagUnset&lt;TEnum&gt;(TEnum, TEnum, String)</h4>
  <div class="markdown level1 summary"><p>Asserts that the specified state flag is not set.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static void StateFlagUnset&lt;TEnum&gt;(TEnum value, TEnum flag, string message)where TEnum : struct, IComparable, IFormattable, IConvertible</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">TEnum</span></td>
        <td><span class="parametername">value</span></td>
        <td><p>The value.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">TEnum</span></td>
        <td><span class="parametername">flag</span></td>
        <td><p>The flag.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">message</span></td>
        <td><p>The message.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">TEnum</span></td>
        <td><p>The type of the enum value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_EnumCode_StateFlagUnset__1___0___0_System_String_System_Object___.md&amp;value=---%0Auid%3A%20CodeJam.EnumCode.StateFlagUnset%60%601(%60%600%2C%60%600%2CSystem.String%2CSystem.Object%5B%5D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/Main/src/Assertions/EnumCode.cs/#L233">View Source</a>
  </span>
  <a id="CodeJam_EnumCode_StateFlagUnset_" data-uid="CodeJam.EnumCode.StateFlagUnset*"></a>
  <h4 id="CodeJam_EnumCode_StateFlagUnset__1___0___0_System_String_System_Object___" data-uid="CodeJam.EnumCode.StateFlagUnset``1(``0,``0,System.String,System.Object[])">StateFlagUnset&lt;TEnum&gt;(TEnum, TEnum, String, Object[])</h4>
  <div class="markdown level1 summary"><p>Asserts that the specified state flag is not set.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static void StateFlagUnset&lt;TEnum&gt;(TEnum value, TEnum flag, string messageFormat, params object[] args)where TEnum : struct, IComparable, IFormattable, IConvertible</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">TEnum</span></td>
        <td><span class="parametername">value</span></td>
        <td><p>The value.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">TEnum</span></td>
        <td><span class="parametername">flag</span></td>
        <td><p>The flag.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">messageFormat</span></td>
        <td><p>The message format.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Object</span>[]</td>
        <td><span class="parametername">args</span></td>
        <td><p>The arguments.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">TEnum</span></td>
        <td><p>The type of the enum value.</p>
</td>
      </tr>
    </tbody>
  </table>
</article>
          </div>
          
          <div class="hidden-sm col-md-2" role="complementary">
            <div class="sideaffix">
              <div class="contribution">
                <ul class="nav">
                  <li>
                    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_EnumCode.md&amp;value=---%0Auid%3A%20CodeJam.EnumCode%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
                  </li>
                  <li>
                    <a href="https://github.com/rsdn/CodeJam/blob/master/Main/src/Assertions/EnumCode.cs/#L12" class="contribution-link">View Source</a>
                  </li>
                </ul>
              </div>
              <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
              <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
              </nav>
            </div>
          </div>
        </div>
      </div>
      
      <footer>
        <div class="grad-bottom"></div>
        <div class="footer">
          <div class="container">
            <span class="pull-right">
              <a href="#top">Back to top</a>
            </span>
            Copyright � 2015-2017
            
          </div>
        </div>
      </footer>
    </div>
    
    <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
    <script type="text/javascript" src="../../styles/docfx.js"></script>
    <script type="text/javascript" src="../../styles/main.js"></script>
  </body>
</html>
